//
//  CashModel.h
//  DaJiang
//
//  Created by sally on 16/10/29.
//  Copyright © 2016年 jiniu. All rights reserved.
//

#import "BussinessModel.h"

/**
 *  提现实体
 */
@protocol CashSummaryModel
@end
@protocol CashLogModel
@end
@interface CashModel : BussinessModel

@property (nonatomic, strong) NSMutableArray<CashSummaryModel> *account_summary;
@property (nonatomic, strong) NSMutableArray<CashLogModel> *account_log;

//提现页面
+ (void)queryCashAccountWithCompletion:(void (^)(CashModel *cashModel))completion;

@end

@interface CashSummaryModel : BussinessModel

@property (nonatomic, assign) NSInteger summaryid;
@property (nonatomic, assign) CGFloat value;
@property (nonatomic, assign) NSInteger updated_at;
@property (nonatomic, strong) NSString *account_name;
@property (nonatomic, assign) NSInteger uid;
@property (nonatomic, assign) NSInteger created_at;

//提现
+ (void)takeCashWithValue:(NSString *)value
               completion:(void (^)(CashSummaryModel *summaryModel))completion;

@end

@class CashLogData;
@interface CashLogModel : BussinessModel

@property (nonatomic, strong) NSString *account_name;
@property (nonatomic, assign) NSInteger op_uid;
@property (nonatomic, assign) NSInteger uid;
@property (nonatomic, assign) NSInteger logid;
@property (nonatomic, strong) NSString *op_name;
@property (nonatomic, assign) CGFloat value;
@property (nonatomic, strong) CashLogData *op_data;
@property (nonatomic, assign) NSInteger timestamp;

@end

@interface CashLogData : BussinessModel

@property (nonatomic, assign) NSInteger state;
@property (nonatomic, strong) NSString *user_profile_pic;
@property (nonatomic, strong) NSString *topic_name;
@property (nonatomic, assign) NSInteger consult_id;
@property (nonatomic, strong) NSString *user_name;

@end
